package com.liu.mybatisPlus.poke.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liu.mybatisPlus.poke.entity.base.PokeGroupUserPoke;
import com.liu.qqRobot.poke.entity.dto.PokeDTO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author LiuChengLong
 * @since 2024-09-12
 */
public interface PokeGroupUserPokeMapper extends BaseMapper<PokeGroupUserPoke> {

    /**
     * 根据QQ号和宝可梦名称查询宝可梦信息
     * @param groupId groupId
     * @param userId userId
     * @param pokeName pokeName
     * @return List<PokeDTO>
     */
    PokeDTO getPokeByUserIdAndPokeName(@Param("groupId") Long groupId, @Param("userId") Long userId, @Param("pokeName") String pokeName);

    /**
     * 根据QQ号和宝可梦id查询宝可梦信息
     * @param groupId groupId
     * @param userId userId
     * @param pokeId pokeId
     * @return PokeDTO
     */
    PokeDTO getPokeByUserIdAndPokeId(@Param("groupId") Long groupId, @Param("userId") Long userId, @Param("pokeId") Integer pokeId);

}
